import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: '组件',
  description: 'A VitePress Site',
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: '组件', link: '/components/button/' }
    ],

    sidebar: [
      {
        text: '基本',
        items: [
          { text: 'Button', link: '/components/button/' },
          { text: 'tree', link: '/components/tree/' },
          { text: 'Step 步骤条', link: '/components/step/' },
          { text: 'Carousel 走马灯', link: '/components/carousel/' },
          { text: 'pagination', link: '/components/pagination/' },
          { text: 'table', link: '/components/table/' },
          { text: 'collapse', link: '/components/collapse/' },
          { text: 'calendar', link: '/components/calendar/' },
          { text: 'layout', link: '/components/layout/' },
          { text: 'loading', link: '/components/loading/' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
